<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test3</title>
</head>
<body>
<table>
    <tr>
        <th>序号</th>
        <th>学号</th>
        <th>姓名</th>
    </tr>
    <tr th:each="stu, stat:${list}">
        <td th:text="${stat.index}+'/'+${stat.size}">序号</td>
        <td th:text="${stu.id}">000</td>
        <td th:text="${stu.name}">nobody</td>
    </tr>
</table>
<p th:text="'元素总数='+${list.size}"></p>
</body>
</html>